package com.vogue.supplymall.shop.domain.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.vogue.ssm.database.dao.BaseDao;
import com.vogue.supplymall.shop.domain.dao.RelShopCategoryDao;
import com.vogue.supplymall.shop.domain.model.RelShopCategory;
import com.vogue.supplymall.shop.domain.service.RelShopCategoryService;
/**
 * The type RelShopCategory service.
 *
 * @aouthor: gzl
 * @create: 2017 -12-01
 */
@Service("relShopCategoryService")
public class RelShopCategoryServiceImp extends BaseServiceImpl<RelShopCategory, Long> implements RelShopCategoryService {

	@Resource
	private RelShopCategoryDao relShopCategoryDao;
	public RelShopCategoryServiceImp(BaseDao<RelShopCategory, Long> baseDao) {
		super(baseDao);
		// TODO Auto-generated constructor stub
	}

	@Override
	public List<Map<String, Object>> findAllCategoryIds(Long syscodeid) {
		// TODO Auto-generated method stub
		return relShopCategoryDao.query("select distinct categoryid id from rel_shop_category "
				+ "where syscodeid = "+ syscodeid);
	}

}
